﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EMR_System.Data;

namespace EMR_System.Controllers
{
    public class UserController
    {
        public static bool Login(string username, string password)
        {
            User currentUser = new User(username, password);
            // EMRSystem.ValidateUser(currentUser);?
            return EMRSystem.Login(currentUser);
        }

        public static bool Logoff()
        {
            return EMRSystem.Logoff();
        }

        public static List<User> GetDoctors()
        {
            return EMRSystem.GetDoctors();
        }

        public static User GetUser(string username)
        {
            return EMRSystem.GetUser(username);
        }
    }
}
